﻿<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="成品发运单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-8 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addData()"
                        ng-disabled="!btnPermission.boxupNoAdd"
                        translate translate-attr-title="{{!btnPermission.boxupNoAdd?'无权限执行此操作':''}}">新增</button>
                </div>
                <div class="search-bar wrapper-none col-xs-4">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate
                            translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color">
                            <div translate translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3" is-ajax="true">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出全部</span>
                                </li>
                                <li yb-download download-url="exportParam.allUrl"
                                    download-param="exportParam.sectionParam" download-key="ids" is-ajax="true">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')" translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" translate
                            translate-attr-placeholder="打包单号" ng-model="condition.packNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>装箱单号</span>：</label>
                        <input type="text" name="boxupNo" ng-model="condition.boxupNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购合同号</span>：</label>
                        <input type="text" name="purchaseContractNo" ng-model="condition.purchaseContractNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单人</span>：</label>
                        <input type="text" name="createName" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>接收人</span>：</label>
                        <input type="text" name="acceptName" ng-model="condition.acceptName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>发运人</span>：</label>
                        <input type="text" name="deliveryName" ng-model="condition.deliveryName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>国家和地区</span>：</label>
                        <input type="text" name="country" ng-model="condition.country" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>单据状态</span>：</label>
                        <select class="form-control" ng-model="condition.status">
                            <option value="" translate>请选择</option>
                            <option value='-1' translate>草稿</option>
                            <option value='0' translate>未审核</option>
                            <option value='1' translate>通过</option>
                            <option value='2' translate>拒绝</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>发运状态</span>：</label>
                        <select class="form-control" ng-model="condition.deliveryStatus">
                            <option value="" translate>请选择</option>
                            <option value='0' translate>未发运</option>
                            <option value='4' translate>部分发运</option>
                            <option value='1' translate>已发运</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>制单时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createTimeStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createTimeStart', 'createTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createTimeEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createTimeStart', 'createTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>发运时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.deliveryTimeStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(2)"
                            is-open="datePickerFlag[2]" close-text="关闭"
                            ng-change="checkDate(condition, 'deliveryTimeStart', 'deliveryTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.deliveryTimeEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(3)"
                            is-open="datePickerFlag[3]" close-text="关闭"
                            ng-change="checkDate(condition, 'deliveryTimeStart', 'deliveryTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                    
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>审核时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.checkTimeStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(4)"
                            is-open="datePickerFlag[4]" close-text="关闭"
                            ng-change="checkDate(condition, 'checkTimeStart', 'checkTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.checkTimeEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(5)"
                            is-open="datePickerFlag[5]" close-text="关闭"
                            ng-change="checkDate(condition, 'checkTimeStart', 'checkTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center border-l-none th-check">
                                        <div yb-check-box yb-checked="markInfo.allChecked" yb-click="selectForAll()">
                                        </div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeftWidth">
                        <table class="table-fixed border-none">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, dataList, '')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-if="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">

                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button class="btn btn-operate m-r-xs" ng-click="editData(item)"
                                                ng-disabled="!btnPermission.boxupNoUpdate || item.deliveryStatus == 1 || item.status == 1 || item.status == 0"
                                                translate
                                                translate-attr-title="{{!btnPermission.boxupNoUpdate?'无权限执行此操作':''}}">编辑</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="delApply(item)"
                                                ng-disabled="!btnPermission.boxupNoDelete || item.deliveryStatus == 1 || item.status == 1"
                                                translate
                                                translate-attr-title="{{!btnPermission.boxupNoDelete?'无权限执行此操作':''}}">删除</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="auditBill(item)"
                                                ng-disabled="!btnPermission.boxupNoAudit || item.deliveryStatus == 1 || item.status != 0"
                                                translate
                                                translate-attr-title="{{!btnPermission.boxupNoAudit?'无权限执行此操作':''}}">审核</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="delivery(item)"
                                                ng-disabled="!btnPermission.boxupNoDelivery || item.deliveryStatus == 1 || item.status != 1"
                                                translate
                                                translate-attr-title="{{!btnPermission.boxupNoDelivery?'无权限执行此操作':''}}">发运</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="printBoxupNoPack(item)"
                                                ng-disabled="!btnPermission.boxupNoPrint" translate
                                                translate-attr-title="{{!btnPermission.boxupNoPrint?'无权限执行此操作':''}}">打印</button>                                            
                                            <button class="btn btn-operate m-r-xs"
                                                yb-download download-url="exportParam.exportJckUrl" download-param="{ids: item.id}"
                                                ng-disabled="!btnPermission.boxupNoExport" translate
                                                translate-attr-title="{{!btnPermission.boxupNoExport?'无权限执行此操作':''}}">进出口导出</button>                                                
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allChecked" yb-check-name="全选"
                    yb-click="selectAll(dataList, '')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="新增" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="clearfix" ng-show="curStep == 0">
                <div class="pos-a-full" style="right: 50%;top: 35px;">
                    <div class="row wrapper-y-sm">
                        <div class="search-bar wrapper-none col-xs-3 m-r-md">
                            <input type="text" name="deliveryReceiptNo" ng-model="orderCondition.deliveryReceiptNo" class="form-control" translate translate-attr-placeholder="请输入发运交接单号">
                        </div>
                        <div class="search-bar wrapper-none col-xs-3 m-r-md">
                            <input type="text" name="purchaseContractNo" ng-model="orderCondition.purchaseContractNo" class="form-control" translate translate-attr-placeholder="请输入采购合同号">
                        </div>
                        <div class="search-bar wrapper-none col-xs-4 pull-right">
                            <div class="input-group pull-right clearfix">
                                <input type="text" class="form-control txt-search" translate
                                    translate-attr-placeholder="请输入箱单号"
                                    ng-style="{width:'200px'}"
                                    ng-model="orderCondition.boxupNo">
                                <span class="input-group-addon cursor-pointer" ng-click="searchBill(1)" translate>搜索</span>
                            </div>
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right"
                        style="top:50px; bottom: 50px;">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth + 40}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="text-center th-check border-l-none">
                                            <div yb-check-box yb-checked="orderMarkInfo.allChecked"
                                                yb-click="orderSelectAll()"></div>
                                        </th>
                                        <th ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-click="toSort(addLeftTableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="addLeftTableConfig.scrollWidth"
                                                fixed-width="addLeftTableConfig.fixedWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-click="toSort(addLeftTableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="addLeftTableConfig.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y" ng-show="orderDataList.length > 0">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.fixedWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in orderDataList track by $index"
                                        ng-class="{'row-selected': $index === orderMarkInfo.cueRow}"
                                        ng-click="selectRow($index)">
                                        <td width="40" class="text-center border-l-none">
                                            <div yb-check-box yb-checked="item.isChecked"
                                                yb-click="orderSelectSingle(item)"></div>
                                        </td>
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="orderDataList.length > 0" ng-style="tbStyle.billFixedWidth">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in orderDataList track by $index"
                                        ng-class="{'row-selected': $index === orderMarkInfo.cueRow}"
                                        ng-click="selectRow($index)">
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="orderDataList.length === 0" translate>暂时没有数据</div>
                    </div>
                    <div class="bottom-area page-bar wrapper-y-sm clearfix">
                        <div yb-check-box class="m-t-xs m-r-sm" yb-checked="orderMarkInfo.allChecked" yb-check-name="全选"
                            yb-click="orderSelectAll()"></div>
                        <div yb-page-info ng-model="orderPageInfo" yb-refresh="searchBill()"></div>
                    </div>
                </div>
                <div class="pos-a-full" style="left: 50%; padding-left: 10px;top: 35px;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form" translate>
                            已选单据:
                        </div>
                    </div>
                    <div yb-table-fixed class="table-fixed-wrap" style="top:50px; bottom: 50px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="640">
                                <thead>
                                    <tr>
                                        <th width="40" translate class="spill-dots">序号
                                        </th>
                                        <th width="150" translate class="spill-dots">箱单号
                                        </th>
                                        <th width="120" translate class="spill-dots">毛重/净重(kg)
                                        </th>
                                        <th width="120" translate class="spill-dots">长/宽/高(mm)
                                        </th>
                                        <th width="80" translate>操作</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="selectedList.length > 0">
                            <table class="table-fixed border-none" width="640">
                                <tbody>
                                    <tr ng-repeat="item in selectedList track by $index">
                                        <td width="40" class="spill-dots" title="{{$index + 1}}">{{$index + 1}}</td>
                                        <td width="150" class="spill-dots" title="{{item.boxupNo}}">{{item.boxupNo}}</td>
                                        <td width="120" class="spill-dots" title="{{item.weightInfo}}">{{item.weightInfo}}</td>
                                        <td width="120" class="spill-dots" title="{{item.sizeInfo}}">{{item.sizeInfo}}</td>
                                        <td width="80"><button class="btn btn-operate" ng-if="item.deliveryStatus != 1 && item.deliveryStatus != 4"  ng-click="delSelected($index)" translate>删除</button></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="selectedList.length === 0" translate>暂时没有数据
                        </div>
                    </div>
                    <div class="bottom-area page-bar wrapper-y-sm text-right clearfix">
                        <button type="button" class="btn btn-primary" ng-disabled="selectedList.length==0"
                            ng-click="nextStep()" translate>下一步
                        </button>
                    </div>     
                </div>
            </div>
            <div class="m-t-sm form-up-tb clearfix" ng-show="curStep == 1">
                <form name="orderForm" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>                    
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>接收人</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="acceptName" class="form-control light-bg"
                                ng-model="addInfo.acceptName" ng-click="searchDispatch()" required yb-focus
                                readonly translate translate-attr-placeholder="请选择">
    
                            <div class="msg-block"
                                ng-if="orderForm.acceptName.$dirty || (orderForm.acceptName.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.acceptName.$error.required && !orderForm.acceptName.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>国家和地区</span>：</label>
                        <div class="col-xs-8 wrapper-none" ng-if="!hasCountry">
                            <div name="country" dealer-dictionary-selector ng-model="addInfo.country" required
                                sel-key="country" sel-code="addInfo.countryName"
                                data-model="addInfo.countryName">
                                <input type="text" class="form-control light-bg"
                                    ng-model="addInfo.country" translate-attr-placeholder="请选择"
                                    readonly yb-focus>

                                <div class="msg-block"
                                    ng-if="orderForm.country.$dirty || (orderForm.country.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="orderForm.country.$error.required && !orderForm.country.focused">
                                        <div class="msg-triangle"></div>
                                        <span translate>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-8 control-label p-l-n text-left" ng-if="!!hasCountry">
                          {{addInfo.country || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="remark" class="form-control light-bg"
                                ng-model="addInfo.remark" yb-focus
                                translate translate-attr-placeholder="请输入">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>运输方式</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div select-send-type first-level-model="addInfo.shippingMethodId"
                                second-level-model="addInfo.shippingSecondMethodId"
                                parent-type-name="addInfo.shippingMethod"
                                child-type-name="addInfo.shippingSecondMethod">
                            </div>
                            <div class="msg-block"
                                ng-show="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>要求发运日期</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="addInfo.requireDeliveryTime"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="deliveryDateShow=!deliveryDateShow"
                                is-open="deliveryDateShow" close-text="关闭" modal-size="small" readonly>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>发运地址</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control light-bg" ng-model="addInfo.deliveryAddress" maxlength="1000">
                        </div>
                    </div>
                </form>
                <div class="main-area d-b-60" ng-style="{top: '140px'}">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="800">
                                <thead>
                                    <tr>
                                        <th translate width="60">操作</th>
                                        <th ng-repeat="itemCol in addTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="addTableConfig.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="800">
                                <tbody>
                                    <tr ng-repeat="item in selectedList track by $index"
                                        ng-class="{'row-selected': $index === markInfo.cueRow}"
                                        ng-click="selectRow($index)">
                                        <td width="60">
                                            <button type="button" class="btn btn-operate"
                                                ng-disabled="item.deliveryStatus == 1"
                                                ng-click="delSelected($index, $event)" translate>删除</button>
                                        </td>
                                        <td ng-repeat="itemCol in addTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                            <div class="spill-dots" ng-if="!itemCol.input">
                                                {{item[itemCol.dataField]}}
                                            </div>
                                            <div ng-if="!!itemCol.input" class="td-edit pos-r">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]" />
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="prevStep()" translate>上一步</button>
                    <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="confirmAdd(orderForm.$valid,'-1')" translate>保存</button>
                    <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="confirmAdd(orderForm.$valid,'0')" translate>提交</button>
                    <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="cancelAdd()" translate>取消</button>
                </div>
            </div>
        </div>
        <div tab heading="编辑" active="activeFlag[2]" ng-if="activeFlag[2]" ng-click="changeTab(2)">
            <div class="m-t-sm form-up-tb clearfix">
                <form name="orderForm" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>打包单号</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{editInfo.packNo || '-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>国家和地区</span>：</label>
                        <div class="col-xs-8 wrapper-none" ng-if="!editInfo.country || !editHasCountry || editInfo.status == '-1' ">
                            <div name="country" dealer-dictionary-selector ng-model="editInfo.country"
                                sel-key="country" sel-code="editInfo.countryName" required
                                data-model="editInfo.countryName">
                                <input type="text" class="form-control light-bg"
                                    ng-model="editInfo.country" translate-attr-placeholder="请选择"
                                    readonly yb-focus>
                            </div>
                            <div class="msg-block"
                                ng-if="orderForm.country.$dirty || (orderForm.country.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.country.$error.required && !orderForm.country.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-8 control-label p-l-n text-left" ng-if="!!editInfo.country && editHasCountry &&  editInfo.status != '-1'">
                          {{editInfo.country || "-"}}
                      </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                      <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>运输方式</span>：</label>
                      <div class="col-xs-8 wrapper-none">
                          <div select-send-type first-level-model="editInfo.shippingMethodId"
                              second-level-model="editInfo.shippingSecondMethodId"
                              parent-type-name="editInfo.shippingMethod"
                              child-type-name="editInfo.shippingSecondMethod">
                          </div>
                          <div class="msg-block"
                                ng-show="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                      </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>制单人</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.createName || '-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.createTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>接收人</span>：</label>
                        <div class="col-xs-8 wrapper-none" ng-if="editInfo.status == -1">
                            <input type="text" name="acceptName" class="form-control light-bg"
                                ng-model="editInfo.acceptName" ng-click="searchDispatch('edit')" required yb-focus
                                readonly translate translate-attr-placeholder="请选择">
    
                            <div class="msg-block"
                                ng-if="orderForm.acceptName.$dirty || (orderForm.acceptName.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.acceptName.$error.required && !orderForm.acceptName.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>

                        <label class="col-xs-8 control-label p-l-n text-left" ng-if="editInfo.status != -1">
                            {{editInfo.acceptName || '-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>审核时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.checkTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>审核意见</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.checkMessage||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>发运人</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.deliveryName||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>发运时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.deliveryTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>单据状态</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.statusShow ||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>发运状态</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.deliveryStatusShow || '-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>修改人</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.updateName||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>修改时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{editInfo.updateTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="remark" class="form-control" maxlength="200"
                                ng-model="editInfo.remark">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>要求发运日期</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control date-picker" ng-model="editInfo.requireDeliveryTime"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="deliveryTimeShow=!deliveryTimeShow"
                                is-open="deliveryTimeShow" close-text="关闭" modal-size="small" readonly>
                        </div>           
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>发运地址</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control light-bg" ng-model="editInfo.deliveryAddress" maxlength="1000">
                        </div>                        
                    </div>                                        
                </form>
                <div class="main-area d-b-60" ng-style="{top: '250px'}">
                    <div class="row wrapper-y-sm">
                        <button class="btn btn-operate m-r-sm" ng-click="selectBoxupNo($event)" translate>选择箱单</button>
                        <button class="btn btn-operate m-r-sm" ng-click="uploadMark('editInfo')" translate>导入唛头</button>
                    </div>
                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="800"> 
                                <thead>
                                    <tr>
                                        <th translate width="60">操作</th>
                                        <th ng-repeat="itemCol in editTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="editTableConfig.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="800">
                                <tbody>
                                    <tr ng-repeat="item in editInfo.boxupPackDetailVOList track by $index"
                                        ng-class="{'row-selected': $index === markInfoEdit.cueRow}"
                                        ng-click="selectRowEdit($index)">
                                        <td width="60">
                                            <button type="button" class="btn btn-operate"
                                                ng-disabled="item.deliveryStatus == 1"
                                                ng-click="delBoxupNo($index, $event)" translate>删除</button>
                                        </td>
                                        <td ng-repeat="itemCol in editTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                            <div class="spill-dots" ng-if="!itemCol.input">
                                                {{item[itemCol.dataField]}}
                                            </div>
                                            <div ng-if="!!itemCol.input" class="td-edit pos-r">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]" />
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-disabled="editInfo.status != -1"
                        ng-click="confirmEdit(orderForm.$valid,'-1')" translate>保存</button>
                    <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="confirmEdit(orderForm.$valid,'0')" translate>提交</button>                        
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                </div>
                <div boxup-no-selector compared-str="'boxupNo'" show-toolbar="toolbarConfig.showBoxupNo" selected-list="editInfo.boxupPackDetailVOList"></div>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[3]" ng-if="activeFlag[3]" ng-click="changeTab(3)">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>打包单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.packNo || '-'}}">
                        {{detailInfo.packNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.country || '-'}}">
                        {{detailInfo.country || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.createName || '-'}}">
                        {{detailInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.createTime|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(detailInfo.createTime|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>接收人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.acceptName || '-'}}">
                        {{detailInfo.acceptName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.checkTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(detailInfo.checkTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.checkMessage || '-'}}">
                        {{detailInfo.checkMessage || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryName || '-'}}">
                        {{detailInfo.deliveryName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.deliveryTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(detailInfo.deliveryTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.shippingMethodConcat || '-'}}">
                        {{detailInfo.shippingMethodConcat || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.statusShow || '-'}}">
                        {{detailInfo.statusShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryStatusShow || '-'}}">
                        {{detailInfo.deliveryStatusShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>修改人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.updateName || '-'}}">
                        {{detailInfo.updateName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>修改时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.updateTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(detailInfo.updateTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.remark || '-'}}">
                        {{detailInfo.remark || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>要求发运日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.requireDeliveryTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(detailInfo.requireDeliveryTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>  
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryAddress || '-'}}">
                        {{detailInfo.deliveryAddress || "-"}}
                    </div>
                </div>                              
            </div>
            <div tabset type="sub-tab">
                <div tab heading="装箱清单" active="subTabFlag[0]">
                    <div class="main-area d-b-60" ng-style="{top:isEN?'250px':'220px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="{{detailTableConfig.scrollWidth + 60}}">
                                    <thead>
                                        <tr>
                                            <th translate width="60">序号</th>
                                            <th ng-repeat="itemCol in detailTableConfig.tableCol track by $index"
                                                width="{{itemCol.width}}">
                                                <div yb-thead-operate ng-model="itemCol"
                                                    target-width="detailTableConfig.scrollWidth"></div>
                                            </th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="{{detailTableConfig.scrollWidth + 60}}">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.boxupPackDetailVOList track by $index"
                                            ng-class="{'row-selected': $index === markInfo.cueRow}"
                                            ng-click="selectRow($index)">
                                            <td width="60">{{$index + 1}}</td>
                                            <td ng-repeat="itemCol in detailTableConfig.tableCol track by $index"
                                                width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                                <div class="spill-dots" ng-if="!itemCol.input">
                                                    {{item[itemCol.dataField]}}
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div tab heading="发运" active="activeFlag[4]" ng-if="activeFlag[4]" ng-click="changeTab(4)">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>打包单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.packNo || '-'}}">
                        {{deliveryObj.packNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.country || '-'}}">
                        {{deliveryObj.country || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.createName || '-'}}">
                        {{deliveryObj.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(deliveryObj.createTime|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(deliveryObj.createTime|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>接收人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.acceptName || '-'}}">
                        {{deliveryObj.acceptName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(deliveryObj.checkTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(deliveryObj.checkTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.checkMessage || '-'}}">
                        {{deliveryObj.checkMessage || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.deliveryName || '-'}}">
                        {{deliveryObj.deliveryName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(deliveryObj.deliveryTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(deliveryObj.deliveryTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.statusShow || '-'}}">
                        {{deliveryObj.statusShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.deliveryStatusShow || '-'}}">
                        {{deliveryObj.deliveryStatusShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>修改人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.updateName || '-'}}">
                        {{deliveryObj.updateName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>修改时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(deliveryObj.updateTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(deliveryObj.updateTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{deliveryObj.remark || '-'}}">
                        {{deliveryObj.remark || "-"}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-sm" translate>
                <div class="p-t-form">
                    装箱清单
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="deliveryObj.boxupPackDetailVOList"
               ></div>
            <div class="main-area d-b-60" style="top:190px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{deliveryTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedDelivery"
                                            yb-click="selectAll(deliveryObj.boxupPackDetailVOList, 'Delivery')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in deliveryTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="deliveryTableConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="deliveryObj.boxupPackDetailVOList.length > 0">
                        <table class="table-fixed border-none" width="{{deliveryTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in deliveryObj.boxupPackDetailVOList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, deliveryObj.boxupPackDetailVOList, 'Delivery')"></div>
                                    </td>
                                    <td ng-repeat="itemCol in deliveryTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots" ng-if="!itemCol.input">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'note'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                maxlength="120">
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="deliveryObj.boxupPackDetailVOList.length === 0" translate>
                        暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="confirmDelivery()"
                    translate>确定</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)" translate>取消</button>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[5]" ng-if="activeFlag[5]" ng-click="changeTab(5)">
            <div class="clearfix">
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>打包单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.packNo || '-'}}">
                            {{detailInfo.packNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>国家和地区</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.country || '-'}}">
                            {{detailInfo.country || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.createName || '-'}}">
                            {{detailInfo.createName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{(detailInfo.createTime|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                            {{(detailInfo.createTime|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>接收人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.acceptName || '-'}}">
                            {{detailInfo.acceptName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>审核时间</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{(detailInfo.checkTime|YbDate:'yyyy-MM-dd') || '-'}}">
                            {{(detailInfo.checkTime|YbDate:'yyyy-MM-dd') || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryName}}">
                            {{detailInfo.deliveryName}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运时间</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{(detailInfo.deliveryTime|YbDate:'yyyy-MM-dd') || '-'}}">
                            {{(detailInfo.deliveryTime|YbDate:'yyyy-MM-dd') || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据状态</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.statusShow || '-'}}">
                            {{detailInfo.statusShow || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运状态</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryStatusShow || '-'}}">
                            {{detailInfo.deliveryStatusShow || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>修改人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.updateName || '-'}}">
                            {{detailInfo.updateName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>修改时间</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{(detailInfo.updateTime|YbDate:'yyyy-MM-dd') || '-'}}">
                            {{(detailInfo.updateTime|YbDate:'yyyy-MM-dd') || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.remark || '-'}}">
                            {{detailInfo.remark || "-"}}
                        </div>
                    </div>
                </div>
                <div class="pos-a-full" style="right: 15%;padding-left: 10px;top: 150px;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form">
                            装箱清单
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{detailTableConfig.scrollWidth + 60}}">
                                <thead>
                                    <tr>
                                        <th translate width="60">序号</th>
                                        <th ng-repeat="itemCol in detailTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="detailTableConfig.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="{{detailTableConfig.scrollWidth + 60}}">
                                <tbody>
                                    <tr ng-repeat="item in detailInfo.boxupPackDetailVOList track by $index"
                                        ng-class="{'row-selected': $index === markInfo.cueRow}"
                                        ng-click="selectRow($index)">
                                        <td width="60">{{$index + 1}}</td>
                                        <td ng-repeat="itemCol in detailTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                            <div class="spill-dots" ng-if="!itemCol.input">
                                                {{item[itemCol.dataField]}}
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="main-area d-b-60" style="left: auto; width: 195px;top: 150px">
                    <div class="main-wrap p-b-lg over-flow-h" style="top:35px;">
                        <textarea yb-word-count max-size="500" class="form-control full" ng-model="auditInfo.checkMessage" placeholder="审核意见"></textarea>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('1')" translate>通过</button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('2')" translate>拒绝</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                </div>
            </div>           
        </div>
    </div>
</div>
